﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace DoAnGiaPhaVersion1._0
{
    public class GUILine
    {
        Point from;

        public Point From
        {
            get { return from; }
            set { from = value; }
        }
        Point to;

        public Point To
        {
            get { return to; }
            set { to = value; }
        }
        public void Draw(ref Graphics g, int hvalue, int vvalue)
        {
            g.DrawLine(new Pen(Brushes.Black, 1), new Point(from.X - hvalue, from.Y - vvalue), new Point(to.X - hvalue, to.Y - vvalue));            
        }        
    }
}
